package DesignPatern.A19_访问者模式.QSB.A03_高级模式;

/**
 * @Author: Du
 * @Date: 2021/8/6 8:45
 */
public abstract class Employee
{
    public final static int MALE = 0;
    public final static int FEMALE = 1;
    
    private String name;
    private int salary;
    private int sex;
    
    public String getName()
    {
        return name;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }
    
    public int getSalary()
    {
        return salary;
    }
    
    public void setSalary(int salary)
    {
        this.salary = salary;
    }
    
    public int getSex()
    {
        return sex;
    }
    
    public void setSex(int sex)
    {
        this.sex = sex;
    }
    
    public final void report()
    {
        String Info = "姓名" + this.name + "性别" + this.sex + "薪水" + this.salary;
        System.out.println(Info);
    }
    
    protected abstract String getOtherInfo();
    protected abstract void accept(IVisitor iVisitor);
}
